package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 指定校区
 * </p>
 *
 * @author min
 * @since 2022-08-02
 */
@TableName("appoint_school")
@Data
public class AppointSchool implements Serializable {

    private static final long serialVersionUID = 1L;

    
    private Long id;

    
    private Long forId;

    
    private Long schoolId;

    private Integer type;

    
    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;

    private LocalDateTime deletedAt;
}
